package com.dayou.utils;

import com.dayou.bean.SysUser;
import com.dayou.common.utils.ServletUtils;

public class UserUtil {
    /**
     * 获取当前登录用户
     */
    public static SysUser getUser(){
        return ((SysUser)(ServletUtils.getRequest().getSession().getAttribute("login_user")));
    }
}
